import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';

export const columns: BasicColumn[] = [
    {
    title: '下级SCID',
    dataIndex: 'scid'
   },
   {
    title: '设备编号，主键',
    dataIndex: 'deviceid'
   },
   {
    title: '设备资产编号',
    dataIndex: 'devassestid'
   },
   {
    title: '机房编号（机房表主键）',
    dataIndex: 'roomid'
   },
   {
    title: '站点编号（站点表主键）',
    dataIndex: 'siteid'
   },
   {
    title: '监控单元编号（监控单元表主键）',
    dataIndex: 'suid'
   },
   {
    title: '设备名称',
    dataIndex: 'devicename'
   },
   {
    title: '设备描述',
    dataIndex: 'devicedesc'
   },
   {
    title: '设备类型',
    dataIndex: 'devicetype'
   },
   {
    title: '生产厂商',
    dataIndex: 'productor'
   },
   {
    title: '版本',
    dataIndex: 'version'
   },
   {
    title: '开始运行时间',
    dataIndex: 'beginruntime'
   },
   {
    title: '设备型号',
    dataIndex: 'devicemodel'
   },
   {
    title: '位置网元状态',
    dataIndex: 'locatenestatus'
   },
];

export const searchFormSchema: FormSchema[] = [
 {
    label: '下级SCID',
    field: 'scid',
    component: 'Input'
  },
 {
    label: '设备编号，主键',
    field: 'deviceid',
    component: 'Input'
  },
];

export const formSchema: FormSchema[] = [
  // TODO 主键隐藏字段，目前写死为ID
  {label: '', field: 'id', component: 'Input', show: false},
  {
    label: '下级SCID',
    field: 'scid',
    component: 'Input',
  },
  {
    label: '设备编号，主键',
    field: 'deviceid',
    component: 'Input',
  },
  {
    label: '设备资产编号',
    field: 'devassestid',
    component: 'Input',
  },
  {
    label: '机房编号（机房表主键）',
    field: 'roomid',
    component: 'Input',
  },
  {
    label: '站点编号（站点表主键）',
    field: 'siteid',
    component: 'Input',
  },
  {
    label: '监控单元编号（监控单元表主键）',
    field: 'suid',
    component: 'Input',
  },
  {
    label: '设备名称',
    field: 'devicename',
    component: 'Input',
  },
  {
    label: '设备描述',
    field: 'devicedesc',
    component: 'Input',
  },
  {
    label: '设备类型',
    field: 'devicetype',
    component: 'Input',
  },
  {
    label: '生产厂商',
    field: 'productor',
    component: 'Input',
  },
  {
    label: '版本',
    field: 'version',
    component: 'Input',
  },
  {
    label: '开始运行时间',
    field: 'beginruntime',
    component: 'Input',
  },
  {
    label: '设备型号',
    field: 'devicemodel',
    component: 'Input',
  },
  {
    label: '位置网元状态',
    field: 'locatenestatus',
    component: 'Input',
  },
];
